{# extends "netinfo.html" #}

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
    <title>Network Tools</title>
    <link rel="stylesheet" type="text/css" href="/site_media/css/netstyles.css">
</head>
<body>
    <h1>Available Tools</h1>
    {% block content %}{% endblock %}

<div id="netstatbox">
{% block results %}
{# {%if locales()/ variables coming in from function call %} or don't I have to check for this? #}
<p>A network was generated{{ current_date }}.</p>
<ul class="">
<li>Diameter: {{d}}</li>
<li>Radius: {{r}}</li>
<li>{{file}}</li>
<li>{{fn}}</li>
<li></li>
<li></li>
<li></li>
</ul>
{# {%end if%} #}
{% endblock %}
</div>


    <form action="" method="post"> <!--Example of a pulldown menu; like one
relevant for network input, unless that can be done serverside; by
ending format tag; and then test against deception-->
     <!-- {{ form.errors }} -->
    <label for="id_se"><b>Select graph input format and enter file path</b></label><select name="se" id="id_se"><br />
<option value="adjl">Adjacency List</option>
<option value="edgl">Edge List</option>
<option value="gml">GML</option>
<option value="grml">GraphML</option>
<option value="leda">LEDA</option>
<option value="pjk">Pajek</option>
<option value="sg6">SparseGraph6</option>
</select>
    <input type="path" name="pathn">
    <input type="submit" value="Submit">
    </form>


<form action="/nets/netinfo/" method="get"> 
{%comment%}
Example of a pulldown menu; like one
relevant for network input, unless that can be done serverside; by
ending format tag; and then test against deception; needs to have a seperate URL linking to a
seperate view if the two forms on this page are handled separately; e.g. maybe (r'^nets/netinfo/$', netinfo),
but what if i want their output to be integrated in the same page? need they then be handled in the same view?
{%endcomment%}
     <!-- {{ form.errors }} -->
<!--<label for="id_se"><b>Search by:</b></label>
        <select name="se" id="id_se"></select>-->
    <input type="submit" value="Generate Graph and Display Statistics"> {# created button #}
    </form>


<div style="clear:both"/>

<div id="degbox">
<form action="/nets/netdeg/" method="get">
<input type="submit" value="Generate Degree Distribution Histogram">
</form>

<img src="/site_media/nets/degree_histogram.png" alt="degree histogram">
</div>

{% block error %}

{% if noComponent %}

<p style="color:red;margin-left:20px">Component analysis returned 0.</p>

{% endif %}

{% endblock%}

{#from dotview.html; refactor to cull duplicate code, later? <b> {{pname}} </b><br/> #}
<form action="/nets/netdisplay/" method="GET">
<label><b>Displayed property:</b></label>{{form.fprop}}
	<label><b>Image format:</b></label>{{form.fformat}}<label><b>Layout:</b></label>{{form.layout}}
     {# <label><b>Reaction Label:</b></label>{{form.rlabel}}<label><b>Metabolite Label:</b></label>{{form.mlabel}}<br/> #}
	<input type="submit" name="igem" value="draw">
</form>
{% ifequal format "svg" %}
<embed src="/site_media/nets/{{pname}}.svg" width="500" height="500" type="image/svg+xml" pluginspace="http://www.adobe.com/svg/viewer/install/" 
/>
{% else %}
  <IMG SRC="/site_media/nets/{{pname}}.{{format}}" alt={{pname}} />
{% endifequal %}


</body>
</html>
